projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15af0e7
)
Avoid deprecation warnings
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 15 Oct 2014 18:41:42 +0000
(14:41 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 15 Oct 2014 18:43:19 +0000
(14:43 -0400)
We don't really care if we use deprecated API inside deprecated
code, so just ignore the warning.
gtk/deprecated/gtktrayicon-x11.c
patch
|
blob
|
history
diff --git
a/gtk/deprecated/gtktrayicon-x11.c
b/gtk/deprecated/gtktrayicon-x11.c
index 2ef872e62c0406b09a35dcecd35a114fac27f6e0..0789dda11ed25c2077e0a6c3afacc9ff2149aa76 100644
(file)
--- a/
gtk/deprecated/gtktrayicon-x11.c
+++ b/
gtk/deprecated/gtktrayicon-x11.c
@@
-502,10
+502,13
@@
gtk_tray_icon_get_visual_property (GtkTrayIcon *icon)
icon->priv->manager_visual_rgba = FALSE;
}
+
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
/* For the background-relative hack we use when we aren't
* using a real RGBA visual, we can't be double-buffered
*/
gtk_widget_set_double_buffered (GTK_WIDGET (icon), icon->priv->manager_visual_rgba);
+G_GNUC_END_IGNORE_DEPRECATIONS
if (type != None)
XFree (prop.prop);